package com.usian.common.exception;

import com.usian.model.common.dtos.ResponseResult;
import com.usian.model.common.enums.AppHttpCodeEnum;
import lombok.extern.log4j.Log4j2;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;

@Configuration
@ControllerAdvice
@Log4j2

public class ExceptionConfig {

//    @ExceptionHandler(Exception.class)
//    @ResponseBody
//    public ResponseResult exception(Exception e){
//        log.error("此处是通用异常的同意管理模块");
//        log.info("ssssssssssssssssssssss");
//        return ResponseResult.errorResult(AppHttpCodeEnum.SERVER_ERROR);
//    }

}
